﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using AnyOffice.Model;

namespace AnyOffice.general.work_plan.type
{
    public partial class _new : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.Page.IsPostBack)
            {
                PlanTypeDao dao = new PlanTypeDao();
                PlanTypeData data = new PlanTypeData();
                data.TypeNo = Convert.ToInt32(this.txtTypeNo.Text);
                data.TypeName = this.txtTypeName.Text;
                dao.Insert(base.Conn, data);
                base.CloseConn();
                Response.Redirect("index.aspx");
            }
        } 

    }
}
